package Day08;

public class Worker {
    private String name;
    private int year;
    public Worker(String name,int year){
        this.name=name;
        this.year=year;

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

}
